/**
 * Copyright 2005 The Apache Software Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.edi;

/**
 * Constant,定义了在EDI中所需的各类常量
 * 
 * 
 */
public class Constant {

	//客户端PO对象的请求方法
	public static final String CLIENT_INSERT_REQUEST = "insert";
	public static final String CLINET_UPDATE_REQUEST = "update";
	public static final String CLIENT_DEL_REQUEST = "del";
	public static final String CLIENT_QUERY_REQUEST = "query";
	public static final String CLIENT_EXECUTE_REQUEST = "execute";
	public static final String CLIENT_LOCALSERVICE_REQUEST = "localservice";
	public static final String CLIENT_REMOTESERVICE_REQUEST = "remoteservice";
	public static final String JAR_SERVICE = "JAR";
	//	public static final String JAR_PLUGIN="JAR:";

	//预定义的App名
	public static final String SERVER_APPNAME = "KOLA";
	public static final String EDIFILE_APPNAME = "ediFile";
	public static final String COMPILE_APPNAME = "compileApp";
	public static final String BOPOA_APPNAME = "bopoa";
	
	public static int i;


	public static final String EDIPATH = "edi.path";
	public static final String HOSTURL = "edi.hosturl";

	//PO对象方法常量
	public static final String PO_QUERY = "query";

	//日期格式
	public static final String[] simpleDateFormate = { "yyyy-MM-dd",
			"yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm:ss.s", "HH:mm:ss" };
	public static final String[] simpleTimeFormate = { "hh-mm-ss" };

	//配置性App类型
	public static final String CONFIG_APP_ROLER = "rolerapp";
	public static final String CONFIG_APP_USER = "userapp";

	//执行成功失败定义
	public static final String EXEC_STATE_SUCESS = "1";
	public static final String EXEC_STATE_ERROR = "0";
	//dct文件名称
	public static final String DCTFILENAME = "description.dct";
	//page 文件的类型，弹出窗口
	public static final String PAGE_TYPE_WINDOW = "EDITitleWindow";
	public static final String PAGE_TYPE_CANVAS = "component:EDICanvas";

	public static final String APP_MODULE_SYSMANAGER = "系统管理";
	public static final String APP_MODULE_ROLEMANAGER = "角色管理";
	public static final String APP_MODULE_MODMANAGER = "模块管理";
	public static final String APP_MODULE_WORKFLOWMANAGER = "工作流管理";
	public static final String APP_MODULE_TAGMANAGER = "标签设置";
	public static final String APP_MODULE_FLOWMANAGER = "流程设置";
	public static final String APP_MOUDLE_UNITMANAGER = "组织管理";
	public static final String APP_MODULE_WAPROLERMANAGER = "WAP角色管理";
	public static final String APP_MODULE_WAPMODMANAGER = "WAP模块管理";
	public static final String APP_MODULE_WAPDESIGNER = "WAP设计器";
	public static final String APP_ROLE_ADMIN = "管理员";
	public static final String APP_ROLE_ADMIN_DESC = "管理员权限组";
	public static final String EDI_ADMINACCOUNT = "admin";

	//edi.xml内属性定义
	public static final String SERVER_ADDRESS = "server_address";
	public static final String SERVER_PORT = "server_port";
	public static final String LOCAL_NAME = "local_address";
	public static final String LOCAL_PORT = "local_port";
	public static final String ACCESSORY_PATH = "accessory_path";
	public static final String ACCESSORY_DEFAULTSIZE = "accessory_defaultsize";
	public static final String ACCESSORY_FILEMAXSIZE = "accessory_filemaxsize";
	public static final String ACCESSORY_TEMPDIR = "accessory_tempdir";
	public static final String CLIENT_DEBUG = "client_debug";
	public static final String SESSIONTIMEOUT = "sessionTimeout";
	public static final String INITED = "inited";
	public static final String HOMEPAGE_TYPE = "homepage_type";
	public static final String HOMEPAGE_TYPE_EDI = "edi";
	public static final String HOMEPAGE_TYPE_CUSTOM = "custom";
	public static final String HOMEPAGE_URL = "homepage_url";
	public static final String EXPORT_ADMIN = "export_admin";
	public static final String RETURN_TYPE = "return_type";
	public static final String INCLUDE_E3 = "includee3";
	public static final String INCLUDE_ETALK = "includeetalk";
	public static final String VERSION_DES = "version";

	//edi.xml内属性 默认值
	public static final String CLIENT_DEBUG_DVALUE = "false";
	public static final String RETURN_TYPE_FORWARD = "forward";
	public static final String RETURN_TYPE_REDIRECT = "redirect";
	public static final String VERSION_DES_TEST = "test";
	public static final String VERSION_DES_DEVELOP = "develop";
	public static final String VERSION_DES_FORMAL = "formal";

	//服务期间各种传递消息的类型
	public static final String MESSAGETYPE_SERVERINFO = "serverinfo_message";
	public static final String MESSAGETYPE_SERVERLIST = "serverinfo_list";
	public static final String MESSAGETYPE_REQUEST = "serverinfo_request";
	public static final String MESSAGETYPE_RESPONSE = "serverinfo_response";

	//服务器间Request_response消息类型
	public static final String MESSAGE_IQ_SESSION = "sessionid";

	//网络硬盘
	public static final String NETHD_DEFAULT_PATH = "nethd.path"; //文件存放目录
	public static final String NETHD_USER_DEFAULTSIZE = "nethd.defaultSize"; //用户默认磁盘容量
	public static final String NETHD_FILE_MAXSIZE = "nethd.fileMaxSize"; //单个文件最大值
	public static final String NETHD_FILE_TEMPDIR = "nethd.tempDir"; //零时文件夹
	public static final String NETHD_FILE_DEFAULTSIZE = "nethd.userDefaultSize"; //用户默认空间值

	public static final String CDATALEFT = "<![CDATA[";
	public static final String CDATARIGHT = "]]>";

	public static final String FEKEDITOR_URL = "fckeditor_url";

	//工作流状态中的部分类型
	public static final String WORKFLOW_START_TYPE_SAVE = "save";
	public static final String WORKFLOW_START_TYPE_START = "start";
	public static final String WORKFLOW_START_TYPE_RESTART = "restart";

	//工作流权限状态
	public static final int WORKFLOW_DEVOVLE = 1; //转发
	public static final int WORKFLOW_OVERTO = 2; //转交
	public static final int WORKFLOW_PAUSE = 4; //暂停
	public static final int WORKFLOW_STOP = 8; //停止
	public static final int WORKFLOW_RESTART = 16;//重启
	public static final int WORKFLOW_TERMINATE = 32;//结束

	public static final int WORKFLOW_DEVOVLE_OVERTO = 3;
	public static final int WORKFLOW_DEVOVLE_PAUSE = 5;
	public static final int WORKFLOW_DEVOVLE_STOP = 9;
	public static final int WORKFLOW_DEVOVLE_RESTART = 17;

	public static final int WORKFLOW_OVERTO_PAUSE = 6;
	public static final int WORKFLOW_OVERTO_STOP = 10;
	public static final int WORKFLOW_OVERTO_RESTART = 18;

	public static final int WORKFLOW_PAUSE_STOP = 12;
	public static final int WORKFLOW_PAUSE_RESTART = 20;

	public static final int WORKFLOW_STOP_RESTART = 24;

	public static final int WORKFLOW_DEVOLVE_OVERTO_PAUSE = 7;
	public static final int WORKFLOW_DEVOLVE_OVERTO_STOP = 11;
	public static final int WORKFLOW_DEVOLVE_OVERTO_RESTART = 19;
	public static final int WORKFLOW_DEVOLVE_PAUSE_STOP = 13;
	public static final int WORKFLOW_DEVOLVE_PAUSE_RESTART = 21;
	public static final int WORKFLOW_DEVOLVE_STOP_RESTART = 25;

	public static final int WORKFLOW_OVERTO_PAUSE_STOP = 14;
	public static final int WORKFLOW_OVERTO_PAUSE_RESTART = 22;
	public static final int WORKFLOW_OVERTO_STOP_RESTART = 26;

	public static final int WORKFLOW_PAUSE_STOP_RESTART = 28;

	public static final int WORKFLOW_DEVOLVE_OVERTO_PAUSE_STOP = 15;
	public static final int WORKFLOW_DEVOLVE_OVERTO_PAUSE_RESTART = 23;
	public static final int WORKFLOW_DEVOLVE_OVERTO_STOP_RESTART = 27;
	public static final int WORKFLOW_DEVOLVE_PAUSE_STOP_RESTART = 29;

	public static final int WORKFLOW_OVERTO_PAUSE_STOP_RESTART = 30;

	public static final int WORKFLOW_DEVOVLE_OVERTO_PAUSE_STOP_RESTART = 31;

	public static final int WORKFLOW_TERMINATE_DEVOVLE = 33;
	public static final int WORKFLOW_TERMINATE_OVERTO = 34;
	public static final int WORKFLOW_TERMINATE_PAUSE = 36;
	public static final int WORKFLOW_TERMINATE_STOP = 40;
	public static final int WORKFLOW_TERMINATE_RESTART = 48;

	public static final int WORKFLOW_TERMINATE_DEVOVLE_OVERTO = 35;
	public static final int WORKFLOW_TERMINATE_DEVOVLE_PAUSE = 37;
	public static final int WORKFLOW_TERMINATE_DEVOVLE_STOP = 41;
	public static final int WORKFLOW_TERMINATE_DEVOVLE_RESTART = 49;

	public static final int WORKFLOW_TERMINATE_DEVOVLE_OVERTO_PAUSE = 39;
	public static final int WORKFLOW_TERMINATE_DEVOVLE_OVERTO_STOP = 43;
	public static final int WORKFLOW_TERMINATE_DEVOVLE_OVERTO_RESTART = 51;

	public static final int WORKFLOW_TERMINATE_DEVOVLE_OVERTO_PAUSE_STOP = 47;
	public static final int WORKFLOW_TERMINATE_DEVOVLE_OVERTO_PAUSE_RESTART = 55;

	public static final int WORKFLOW_TERMINATE_DEVOVLE_OVERTO_PAUSE_STOP_RESTART = 63;

	//--------工作流权限状态结束------------------//

	//回复类型：1，代表审批，2，代表审核
	public static int WORKFLOW_ANSWERTYPT_AUDIT = 1;
	public static int WORKFLOW_ANSWERTYPE_AUTHOR = 2;

	public static String DESKTOP_ICO = "1";
	public static String SHORTCUT = "2";

	public static int pageSize = 30;

}
